# frozen_string_literal: true

Rails.application.routes.draw do
  namespace :api do
    namespace :v1 do
      get 'orders/create'
    end
  end
  resources :orders
  root 'sessions#new'

  post 'sessions' => 'sessions#create'

  get 'rooms/show'

  mount ActionCable.server => '/cable'
end
